]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Set accessible name of icon-only buttons
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Feb 2020 17:06:38 +0000 (18:06 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 24 Feb 2020 12:29:44 +0000 (12:29 +0000)
We turned both the auth prompt's cancel button and the switch user
button into icon buttons now, which means they are completely cryptic
when using a screen reader.

Just use the previously used labels as accessible names, which has the
nice side effect of lowering the impact of the string freeze break.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2210

js/gdm/authPrompt.js
js/ui/unlockDialog.js

index bab6d5deee795c38f5a8613f5f67e64e824c89fa..4bcd028aeed134d64bb05785ae527627239c0977 100644 (file)
@@ -132,6 +132,7 @@ var AuthPrompt = GObject.registerClass({
 
         this.cancelButton = new St.Button({
             style_class: 'modal-dialog-button button cancel-button',
+            accessible_name: _('Cancel'),
             button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
             reactive: this._hasCancelButton,
             can_focus: this._hasCancelButton,
index f894709ffc2cc5605b588bcf16d014e60241836c..14bd972d6a5a4e29aad6d753e813e1d16a16861a 100644 (file)
@@ -555,6 +555,7 @@ var UnlockDialog = GObject.registerClass({
         // Switch User button
         this._otherUserButton = new St.Button({
             style_class: 'modal-dialog-button button switch-user-button',
+            accessible_name: _('Log in as another user'),
             can_focus: true,
             reactive: true,
             x_align: Clutter.ActorAlign.END,